home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Views / ViewCell / CellVisitor.h < prev    next >
Text File  |  2000-06-23  |  478b  |  32 lines

  1. // CellVisitor.h
  2.  
  3. #ifndef CellVisitor_h
  4. #define CellVisitor_h
  5.  
  6. #ifndef Rectangle_h
  7. #include "Rectangle.h"
  8. #endif
  9.  
  10. class ViewCell;
  11. class Canvas;
  12.  
  13. class CellVisitor
  14.   {
  15.     private:
  16.         Rectangle destination;
  17.         
  18.     protected:
  19.         ~CellVisitor()            {}
  20.     
  21.     public:
  22.         CellVisitor( const Rectangle& theDestination )
  23.           : destination( theDestination )
  24.           {}
  25.         
  26.         const Rectangle& Destination() const    { return destination; }
  27.         
  28.         virtual void Visit( ViewCell&, const Canvas& ) = 0;
  29.   };
  30.  
  31. #endif
  32.